home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _CCD925777E89497E907FF0C43488BFAD < prev    next >
Encoding:
Text File  |  2004-01-06  |  3.7 KB  |  130 lines

  1. -- NotLarry Behaviour SCRIPT
  2. --------------------------
  3.  
  4. AIBehaviour.NotLarry = {
  5.     Name = "NotLarry",
  6.     pathname = "",
  7.  
  8.     InPosition = 0,
  9.  
  10.     -- SYSTEM EVENTS            -----
  11.     ---------------------------------------------
  12.     OnSelected = function(self,entity )
  13.     end,
  14.     ---------------------------------------------
  15.     OnSpawn = function(self,entity )
  16.     end,
  17.     ---------------------------------------------
  18.     OnActivate = function(self,entity )
  19.     end,
  20.     ---------------------------------------------
  21.     OnNoTarget = function( self,entity )
  22.     end,
  23.     ---------------------------------------------
  24.     OnPlayerSeen = function(self,entity )
  25.         if (entity.Behaviour.InPosition == 0) then
  26.             return
  27.         end
  28.  
  29.         entity:SelectPipe(0,"firesometime");
  30.     end,
  31.     ---------------------------------------------
  32.     OnPlayerMemory = function( self,entity )
  33.     end,
  34.     ---------------------------------------------
  35.     OnEnemySeen = function(self,entity )
  36.     end,
  37.     ---------------------------------------------
  38.     OnEnemyMemory = function(self,entity )
  39.         if (entity.Behaviour.InPosition == 0) then
  40.             return
  41.         end
  42.         
  43.         entity:SelectPipe(0,"wait&reload");
  44.     end,
  45.     ---------------------------------------------
  46.     OnDeadFriendSeen = function(self,entity )
  47.     end,
  48.     ---------------------------------------------
  49.     OnDeadEnemySeen = function(self,entity )
  50.     end,
  51.     ---------------------------------------------
  52.     OnInterestingSoundHeard = function(self,entity )
  53.         if (entity.Behaviour.InPosition == 0) then
  54.             return
  55.         end
  56.  
  57.         entity:SelectPipe(0,"investigate");
  58.     end,
  59.     ---------------------------------------------
  60.     OnThreateningSoundHeard = function( self,entity )
  61.         if (entity.Behaviour.InPosition == 0) then
  62.             return
  63.         end
  64.  
  65.         entity:SelectPipe(0,"hidealways");
  66.     end,
  67.     ---------------------------------------------
  68.     OnGunfireHeard = function(self,entity )
  69.     end,
  70.     ---------------------------------------------
  71.     OnFootstepsHeard = function( self,entity )
  72.     end,
  73.     ---------------------------------------------
  74.     OnGranateSeen = function(self, entity )
  75.     end,
  76.     ---------------------------------------------
  77.     OnLongTimeNoTarget = function( self,entity )
  78.     end,
  79.     ---------------------------------------------
  80.     OnGroupMemberDied = function( self,entity )
  81.     end,
  82.     ---------------------------------------------
  83.     OnNoNearerHidingPlace = function(self, entity , sender)
  84.     end,    
  85.     ---------------------------------------------
  86.     OnNoHidingPlace = function(self, entity, sender )
  87.     end,    
  88.     ---------------------------------------------
  89.     OnReceivingDamage = function (self,entity, sender)
  90.     end,
  91.  
  92.  
  93.     FollowMeBoys = function (self,entity, sender)
  94.         entity:SelectPipe(0,"followWithHide");
  95.     end,
  96.     --------------------------------------------
  97.     ReformInALine = function( self,entity, sender )
  98.         entity:SelectPipe(0,"followWithHide");
  99.     end,
  100.     --------------------------------------------
  101.     StayAlert = function(self,entity, sender )
  102.         local rnd = random(1,20);
  103.         if (rnd<7) then
  104.             entity:SelectPipe(0,"pronealerted");
  105.         elseif (rnd<14) then
  106.             entity:SelectPipe(0,"pronealerted_d1");
  107.         else
  108.             entity:SelectPipe(0,"pronealerted_d2");
  109.         end
  110.  
  111.     end,    
  112.     --------------------------------------------
  113.     StakeOutTunnelEntrance = function( self,entity, sender )
  114.         entity:SelectPipe(0,"hidesomewhere");
  115.     end,    
  116.     --------------------------------------------
  117.     WaitForThePlayer = function( self,entity, sender )
  118.         entity:SelectPipe(0,"standingthere");
  119.         entity.Behaviour.InPosition = 1;
  120.     end,    
  121.     --------------------------------------------
  122.     GetBackToHidePlace = function( self,entity, sender )
  123.         entity:SelectPipe(0,"hidealways");
  124.     end,    
  125.     --------------------------------------------
  126.     CheckEnemyPosition = function(self, entity, sender )
  127.         entity:SelectPipe(0,"findlostenemy");
  128.     end,
  129.  
  130. }